package user;

import book.BookList;
import operator.Operator;

import java.util.Scanner;

public abstract class User {

    Scanner sc = new Scanner(System.in);
    protected String name;

    public User(String name) {
        this.name = name;
    }

    abstract public int menu();

    public Operator[] operators ;

    public void doOperator(int p, BookList bookList) {
        operators[p].work(bookList);
    }
}
